package com.work.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("t_notification")
@Schema(description = "通知实体")
public class Notification {
    @TableId(type = IdType.AUTO)
    @Schema(description = "通知ID")
    private Integer id;

    @Schema(description = "发送者ID")
    private Integer senderId;

    @Schema(description = "接收者ID")
    private Integer receiverId;

    @Schema(description = "通知标题")
    private String title;

    @Schema(description = "通知内容")
    private String content;

    @Schema(description = "发送时间")
    private LocalDateTime sendTime;

    @Schema(description = "是否已读")
    private Integer isRead;
}